<script type="text/javascript" charset="utf-8" src="__PUBLIC__/admin/js/uploadify/jquery.uploadify.min.js" ></script>
<link rel="stylesheet" charset="utf-8" type="text/css" href="__PUBLIC__/admin/js/uploadify/uploadify.css"> 
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/admin/js/upload.js" ></script>
	
	
<!-- 用户列表 -->
<style>
	th {
		text-align: center;
	}
	
	.table>tbody>tr>td {
		line-height: 50px;
		text-align: center;
		height:60px;
		margin: 0px;
	}

	
</style>
<div id="data_page" class="in_page">
	
		<div class="panel panel-default">
			<div class="panel-body">
				<form class="form-inline" method="get" name="keyword" id="keyword">
					<div class="form-group">
						<input type="text" class="form-control" id="exampleInputName2" name="key" placeholder="标题">
					</div>
					<button type="submit" class="btn btn-sm btn-default">搜索</button>
					<div class="form-group" style="float: right;">
						<button type="button" class="btn btn-sm btn-primary link"  link="{:U('Article/article_page_add')}">添加文章</button>
					</div>
				</form>
			</div>
		</div>
		
	<table class="table table-striped table-bordered table-condensed  ">
		<thead>
			<tr>
				<th width="50px">ID</th>
				<th width="200px">分类</th>
				<th>标题</th>
				<th>关联广告</th>
				<th>娱头条</th>
				<th>浏览量</th>
				<th>点赞量</th>
				<th width="150px">操作</th>

			</tr>
		</thead>
		<tbody>	
			<volist name="list" id="li">			
				
				<if condition="$li.id neq 1 ">
				<if condition="$li.id neq 2 ">
				<tr>
					<td>{$key}</td>
					<td>{$li.category}</td>
					<td>{$li.title}</td>
					<td> <if condition="$li.aid eq 0">未关联<else/>已关联广告</if></td>
					<td><if condition="$li['is_top'] eq 1">是<else/>否</if></td>
					<td>{$li.views}</td>
					<td>{$li.like_num}</td>
					<td width="150px">
						<button type="button" class="btn btn-sm btn-success link" link="{:U('Article/article_page_up')}?id={$li.id}">修改</button>
						<button type="button" class="btn btn-sm btn-danger link" link="{:U('Article/del_article')}?id={$li.id}">删除</button>
					</td>
				</tr>
				</if>
				</if>
			</volist>
		</tbody>
	</table>

</div>
<div>{$page}</div>